package com.leve.admin.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import static org.springframework.http.MediaType.APPLICATION_JSON_UTF8_VALUE;

@Api(value = "注册与登录API", tags = "★注册与登录")
@RestController
@RequiredArgsConstructor
public class LoginController {

    @ApiOperation("电话号码或者用户名登录")
    @PostMapping(value = "login", consumes = APPLICATION_JSON_UTF8_VALUE, produces = APPLICATION_JSON_UTF8_VALUE)
    public String login() {
        return "{\"user_id\":\"5c25980c336f3d60c4347cf3\",\"token\":\"5461d1b4-b69c-45b2-bd56-f8e7e32f5ef1\"}";
    }
}
